import fetch from '@/utils/request'

export function publishNotice(query) {
  return fetch({
    url: '/api/notice/add',
    method: 'post',
    data: query
  })
}

export function getNoticeList(query) {
  return fetch({
    url: '/api/notice/list',
    method: 'post',
    data: query
  })
}

export function delNoticeList(id) {
  return fetch({
    url: `/api/notice/delete/${id}`,
    method: 'delete'
  })
}

export function editNoticeList(query) {
  return fetch({
    url: '/api/notice/update',
    method: 'put',
    data: query
  })
}
